/**
 * 
 */
package com.hson.demo.base.exception;

/**
 * @author Hungel.zou
 * @time 2015年7月8日 下午1:28:15
 */
public class DataAccessException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6000248433963769167L;

	private String errorMsg;
	private Integer errorCode;

	public DataAccessException(String errorMsg) {
		super(errorMsg);
		this.errorMsg = errorMsg;
	}

	public DataAccessException(Integer errorCode, String errorMsg) {
		super();
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public DataAccessException(Integer errorCode, String errorMsg, Throwable t) {
		super(t);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public Integer getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
}
